<%@ page import="com.stx.bms.entity.Blog" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>航天赛博博客管理系统</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common.css">

    <style>
        .line lable{
            display: inline-block;
            width: 100px;
            height: 42px;
            line-height: 42px;
            margin-right: 10px;
            text-align: right;
        }
        .line .ipt{
            height: 16px;
            padding: 11px 10px;
            width: 328px;
            border: 1px solid #ddd;
        }
        .line textarea{
            height: 100px;
            padding: 11px 10px;
            width: 328px;
            border: 1px solid #ddd;
        }
        .btn{
            background-color: #3f89ec;
            width: 350px;
            height: 50px;
            color: #ffffff;
            border: 0;
            font-size: 20px;
            cursor: pointer;
        }
    </style>

</head>
<body>
    <div id="div1">航天赛博博客管理系统</div>
    <div id="div2">
        <div id="left">
            <%@include file="menu.jsp"%>
        </div>
        <div id="right">
            <div class="content">
                <h2>查看博客</h2>
                <hr/>
                <%
                    Blog blog = (Blog)request.getAttribute("blog");
                %>

                <h3 style="text-align: center;"><%=blog.getTitle()%></h3>
                <hr/>

                <div class="blog-content-area">
                    <%=blog.getContent()%>
                </div>

            </div>
        </div>
        <div style="clear: both;"></div>
    </div>
    <div id="div3">Copyright 2019 @航天赛博</div>


</body>
</html>